/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.fdm.tst.security;

import java.util.HashMap;
import javax.security.auth.login.AppConfigurationEntry;
import javax.security.auth.login.Configuration;

/**
 *
 * @author fdm
 */
public class AstjSecurityConfiguration extends Configuration {

    @Override
    public AppConfigurationEntry[] getAppConfigurationEntry(String module) {
        if(module != null && module.equals("MainApp")){
            return new AppConfigurationEntry[] {
                new AppConfigurationEntry(
                        AstjLoginModule.class.getName(), 
                        AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, 
                        new HashMap<String, Object>())
            };
        }
        return null;
    }
    
}
